import request from '@/utils/request'

export function fetchList(data) {
  return request({
    url: '/api/apiReview/list',
    method: 'post',
    data: data
  })
}

export function saveApiReview(data) {
  return request({
    url: '/api/apiReview/save',
    method: 'post',
    data: data
  })
}

export function updateStatus(data) {
  return request({
    url: '/api/apiReview/updateStatus',
    method: 'post',
    data: data
  })
}

export function updateDelete(data) {
  return request({
    url: '/api/apiReview/updateDelete',
    method: 'post',
    data: data
  })
}

export function fetchDetail(id) {
  return request({
    url: '/api/apiReview/detail',
    method: 'post',
    data: { id: id }
  })
}
